import request from '@/utils/request'

export function getByPatientPhone(data) {
  return request({
    url: '/order/getByPatientPhone?patientPhone=' + data,
    method: 'get'
  })
}

export function pay(data) {
  return request({
    url: '/order/pay',
    method: 'post',
    data
  })
}

export function payApplication(data) {
  return request({
    url: '/order/payApplication',
    method: 'put',
    params: {
      id: data
    }
  })
}

export function getPayQRCode(data) {
  return request({
    url: '/order/getPayQRCode',
    method: 'post',
    data
  })
}

export function payQuery(no) {
  return request({
    url: '/order/payQuery?id='+no,
    method: 'get'
  })
}
